#pragma once

#include <SharpShooter.h>

using namespace std;
using namespace sharpShooter;
using namespace Core;
using namespace Scene;
using namespace Render;
using namespace Device;


class CBullet
{
public:
	int				m_PositionX;
	int				m_PositionY;
	CBullet(CSceneManager* Manager, int x, int y/*, TANK_DIRECTION direction*/);
	void explosion();
	void iniFactory();
	void updatePosition();
	void createBullet();
	void update();
	void setVisible(bool visible);
	void setXY(int x, int y);
	~CBullet();
protected:
private:

	bool      m_Being;
	IMesh     *mesh;
	TexturePtr texP;
  CSceneManager *m_SceneManager;
  CMeshSceneNode *msd;
};